#include <gtk/gtk.h>
#include "chessboard.h"
#include "menu.h"
#include "window.h"

int main(int argc, char *argv[]) {
    GtkWidget *window;
    GtkWidget *vbox;
    GtkWidget *menu_bar;
    GtkWidget *chessboard;

    gtk_init(&argc, &argv);

    window = create_window();
    g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);

    vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
    gtk_container_add(GTK_CONTAINER(window), vbox);

    menu_bar = create_menu_bar();
    gtk_box_pack_start(GTK_BOX(vbox), menu_bar, FALSE, FALSE, 0);

    chessboard = create_chessboard();
    gtk_box_pack_start(GTK_BOX(vbox), chessboard, TRUE, TRUE, 0);

    gtk_widget_show_all(window);

    gtk_main();
    return 0;
}